<!DOCTYPE html>
<html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="Tj2's Blog">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>绿萝间 (old posts, page 6) | 绿萝间</title>
<link href="assets/css/all-nocdn.css" rel="stylesheet" type="text/css">
<link href="assets/css/ipython.min.css" rel="stylesheet" type="text/css">
<link href="assets/css/nikola_ipython.css" rel="stylesheet" type="text/css">
<meta name="theme-color" content="#5670d4">
<meta name="generator" content="Nikola (getnikola.com)">
<link rel="alternate" type="application/rss+xml" title="RSS" href="rss.xml">
<link rel="canonical" href="https://muxuezi.github.io/index-6.html">
<link rel="prev" href="index-7.html" type="text/html">
<link rel="next" href="index-5.html" type="text/html">
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
    tex2jax: {
        inlineMath: [ ['$','$'], ["\\(","\\)"] ],
        displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
        processEscapes: true
    },
    displayAlign: 'center', // Change this to 'center' to center equations.
    "HTML-CSS": {
        styles: {'.MathJax_Display': {"margin": 0}}
    }
});
</script><!--[if lt IE 9]><script src="assets/js/html5.js"></script><![endif]-->
</head>
<body>
<a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>

<!-- Menubar -->

<nav class="navbar navbar-inverse navbar-static-top"><div class="container">
<!-- This keeps the margins nice -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-navbar" aria-controls="bs-navbar" aria-expanded="false">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="https://muxuezi.github.io/">

                <span id="blog-title">绿萝间</span>
            </a>
        </div>
<!-- /.navbar-header -->
        <div class="collapse navbar-collapse" id="bs-navbar" aria-expanded="false">
            <ul class="nav navbar-nav">
<li>
<a href="archive.html">Archive</a>
                </li>
<li>
<a href="categories/">Tags</a>
                </li>
<li>
<a href="rss.xml">RSS feed</a>

                
            </li>
</ul>
<ul class="nav navbar-nav navbar-right"></ul>
</div>
<!-- /.navbar-collapse -->
    </div>
<!-- /.container -->
</nav><!-- End of Menubar --><div class="container" id="content" role="main">
    <div class="body-content">
        <!--Body content-->
        <div class="row">
            
            

    
<div class="postindex">
    <article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/debian-udisk.html" class="u-url">debian-udisk</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/debian-udisk.html" rel="bookmark"><time class="published dt-published" datetime="2010-01-01T13:44:27+08:00" title="2010-01-01 13:44">2010-01-01 13:44</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p></p>
<p>dd if=/dev/zero of=/disk2/xen/centos5.office.img bs=1M count=3072 oflag=direct
dd if=debian-7.0.0-i386-DVD-1.iso of=/dev/sdb</p>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/del-excel-newline.html" class="u-url">del-excel-newline</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/del-excel-newline.html" rel="bookmark"><time class="published dt-published" datetime="2010-01-01T13:44:27+08:00" title="2010-01-01 13:44">2010-01-01 13:44</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p></p>
<p>选择“查找内容”后的文本框，按住Alt键，在数字键盘中输入“0010”</p>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/didi-taxi.html" class="u-url">didi-taxi</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/didi-taxi.html" rel="bookmark"><time class="published dt-published" datetime="2010-01-01T13:44:27+08:00" title="2010-01-01 13:44">2010-01-01 13:44</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p></p>
<p>一定打的回家。快的打的减13元，滴滴打车首单减15元（其他12-20元不等）。如果你车费超过15元，你可以用滴滴打车先叫车，然后再用快的打车叫一遍车，师傅会把钱分成两份的</p>
<h2>免费的午餐总是让人心情愉快，背后大量的资金流动更是让人心旷神怡啊。</h2>
<h2>2月28日</h2>
<p>今天终于体验一把，滴滴首单免15，返10元，还好。听师傅讲过几天就没了，烧不起。不过昨晚看百度地图也有了，看来有人接盘了。师傅车上装wifi（电信，50元3.5G，乖乖，移动真坑爹啊，50元500M），网速嘎嘎的</p>
<p>缺点：乘客——要等。师傅——要抢，要反复联系。快的定位不准，滴滴可以。</p>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/dou-lie-thread.html" class="u-url">dou-lie-thread</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/dou-lie-thread.html" rel="bookmark"><time class="published dt-published" datetime="2010-01-01T13:44:27+08:00" title="2010-01-01 13:44">2010-01-01 13:44</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<!--
.. title: 豆列的多线程
.. slug: dou-lie-thread
.. date: 05/26/2014 09:12:24 AM UTC
.. tags: Python
.. link:
.. description:
.. type: text
-->

<p>对豆列数据感兴趣，于是用thread\Queue练习了一下，里面的内容不少，目前46万，抓了2小时
豆列有很多商家分享一件商品，排除重复，一共是140841件
加入豆列超过200的只有4426件，不到4%，超过1000的只有273件，不到千分之2，超过1500的只有95件</p>
<p class="more"><a href="posts/dou-lie-thread.html">Read more…</a></p>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/drupal-apache2.html" class="u-url">drupal-apache2</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/drupal-apache2.html" rel="bookmark"><time class="published dt-published" datetime="2010-01-01T13:44:27+08:00" title="2010-01-01 13:44">2010-01-01 13:44</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p></p>
<p>apache2</p>
<p>AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message</p>
<p>sudo vi /etc/apache2/apache2.conf</p>
<p>在最后一行增加</p>
<p>ServerName localhost</p>
<p>http://klau.si/dev</p>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/drupal-views_slideshow.html" class="u-url">drupal-views_slideshow</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/drupal-views_slideshow.html" rel="bookmark"><time class="published dt-published" datetime="2010-01-01T13:44:27+08:00" title="2010-01-01 13:44">2010-01-01 13:44</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p></p>
<p>要让第二组图片水平，需要在主题css（任何一个文件）添加
.views-slideshow-controls-bottom .views-slideshow-pager-field-item .views-field-field-image{</p>
<p>float: left; margin: 5px 19px 0 0; }</p>
<p>重新启动该主题（切换到另一个主题，再换回来，就更新了）</p>
<p>一天半时间...</p>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/excel-field.html" class="u-url">excel-field</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/excel-field.html" rel="bookmark"><time class="published dt-published" datetime="2010-01-01T13:44:27+08:00" title="2010-01-01 13:44">2010-01-01 13:44</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p></p>
<p>Sub test()
ActiveSheet.ScrollArea = "a1:F100"</p>
<p>End Sub</p>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/git-error.html" class="u-url">git-error</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/git-error.html" rel="bookmark"><time class="published dt-published" datetime="2010-01-01T13:44:27+08:00" title="2010-01-01 13:44">2010-01-01 13:44</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p></p>
<p>1. $ git remote add origin git@github.com:muxuezi/testy.git</p>
<p>错误提示：fatal: remote origin already exists.</p>
<p>解决办法：</p>
<p>$ git remote rm origin</p>
<p>$ git remote add origin git@github.com:muxuezi/testy.git</p>
<ol>
<li>$ git push origin master</li>
</ol>
<p>错误提示：error:failed to push som refs to.......</p>
<p>解决办法：</p>
<p>$ git pull origin master //先把远程服务器github上面的文件拉先来，再push 上去。</p>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/git-ssh.html" class="u-url">git-ssh</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/git-ssh.html" rel="bookmark"><time class="published dt-published" datetime="2010-01-01T13:44:27+08:00" title="2010-01-01 13:44">2010-01-01 13:44</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p></p>
<pre>通过ssh生成密钥
ssh-keygen -t rsa -C "<em>your_email@example.com</em>"</pre>
<pre>通过xclip复制

sudo apt-get install xclip

xclip -sel clip &lt; ~/.ssh/id_rsa.pub</pre>

<p></p>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/gogoc-infg.html" class="u-url">gogoc-infg</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/gogoc-infg.html" rel="bookmark"><time class="published dt-published" datetime="2010-01-01T13:44:27+08:00" title="2010-01-01 13:44">2010-01-01 13:44</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p></p>
<p>交大10年，不能没有晨光BT，如今已经叫PT了。以前ubuntu外网不需要设置，直接安装gw6c即可，记得去年突然失效，后来在linuxmint下可以直接运行。一度以为ubuntu out了，百思不得其解。今日偶得一帖，迁移至gogoc，问题解决，具体如下：
ubuntu 13.10下，新建6to4隧道</p>
<p>目前gw6c已经变成gogoc，需要编辑/etc/gogoc/gogoc.config</p>
<p><code>vi /etc/gogoc/gogoc.conf</code></p>
<p>将server=anonymous.freenet6.net</p>
<p>设置为：</p>
<p>server=tb.ipv6.apol.com.tw</p>
<p><code>sudo gogoc</code></p>
<p><code>ps -ef | grep gogoc</code></p>
<p><code>ifconfig</code></p>
<p>可以看到tun，说明成功了，<a title="cgpt" href="http://pt.zhixing.bjtu.edu.cn/user/login" target="_blank">CGPT</a></p>
<p><a title="ubuntu_ipv6" href="http://city4tom.blog.163.com/blog/static/4875058120103212479998/" target="_blank">感谢</a></p>
</div>
    </div>
    </article>
</div>

        <nav class="postindexpager"><ul class="pager">
<li class="previous">
                <a href="index-7.html" rel="prev">Newer posts</a>
            </li>
            <li class="next">
                <a href="index-5.html" rel="next">Older posts</a>
            </li>
        </ul></nav>
</div>
        <!--End of body content-->

        <footer id="footer">
            Contents © 2017         <a href="mailto:muxuezi@gmail.com">Tao Junjie</a> - Powered by         <a href="https://getnikola.com" rel="nofollow">Nikola</a>         
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0">
<img alt="Creative Commons License BY-NC-SA" style="border-width:0; margin-bottom:12px;" src="http://i.creativecommons.org/l/by-nc-sa/4.0/80x15.png"></a>
            
        </footer>
</div>
</div>


            <script src="assets/js/all-nocdn.js"></script><script>$('a.image-reference:not(.islink) img:not(.islink)').parent().colorbox({rel:"gal",maxWidth:"100%",maxHeight:"100%",scalePhotos:true});</script><!-- fancy dates --><script>
    moment.locale("en");
    fancydates(0, "YYYY-MM-DD HH:mm");
    </script><!-- end fancy dates --><script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-51330059-1', 'auto');
  ga('send', 'pageview');

</script>
</body>
</html>
